<script setup lang="ts">
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()

onMounted(() => {
  if (window.QC.Login.check()) {
    window.QC.Login.getMe(openId => {
      console.log('openId', openId)
    })
  } else {
    router.push('/login')
  }

  // window:   Window   interface Window {....}
})
</script>

<template>
  <div class="app-page">qq登录回跳地址</div>
</template>

<style scoped></style>
